# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         text02
# Description:
# Author:       98745
# Date:         2019/3/13
#-------------------------------------------------------------------------------

class student:
    def __init__(self,name,age,major,xi,xueyuan,school):
        self.name=name
        self.age=age
        self.major=major
        self.xi=xi
        self.xueyuan=xueyuan
        self.school=school

    def getinfo(self):
        a='姓名：{},年龄：{}岁，专业：{}，系：{}，学院：{}，学校：{}'.format(self.name,self.age,self.major,self.xi,self.xueyuan,self.school)
        return a
if  __name__ =="__main__":
    s=student('pan',21,'信息管理','信管系','商学院','湖南工业大学')
    print(s.getinfo())